home *** CD-ROM | disk | FTP | other *** search
- Path: library.erc.clarkson.edu!rpi!not-for-mail
- From: javaprog@best.com (John Lockwood)
- Newsgroups: comp.lang.c++,comp.lang.c++.moderated
- Subject: Re: Dynamic class definitions in C++: possible?
- Date: 13 Apr 1996 17:31:41 -0000
- Organization: Best Internet Communications
- Sender: cppmods@netlab.cs.rpi.edu
- Approved: Dietmar.Kuehl@uni-konstanz.de
- Message-ID: <4koodt$2hh@netlab.cs.rpi.edu>
- References: <4ko91f$1cb@netlab.cs.rpi.edu>
- NNTP-Posting-Host: netlab.cs.rpi.edu
- X-Original-Date: Sat, 13 Apr 1996 16:59:07 GMT
-
- Kyle.F.Downey@williams.edu (Kyle F. Downey) wrote:
-
- >1) load a C++ class definition from a file
- >2) convert it to an internal format
- >3) use the class just as you would a compiled class
-
- >This would allow you to add a class at run-time based on a
- >text/user-supplied definition.
-
- Why not rethink the problem?
-
- 1) Read some data from a file.
- 2) Do something with this data using the rich language features that
- C++ offers (polymorphism, templates, etc).
- 3) Make your program work just as if you'd implemented it using
- some wierd JAVA-inspired idea.
-
- I'm not trying to be intentionally dense here. If there are problems
- that can only be solved in the way you've outlined and not in the way
- I have, I'd be interested if you or others would chime in.
-
-
-
-
-
-
-
- Regards,
-
-
-
- John Lockwood
- john@wwg.com
- javaprog@best.com
- http://www.best.com/~javaprog
-
-
- [ Articles to moderate: mailto:c++-submit@netlab.cs.rpi.edu ]
- [ Read the C++ FAQ: http://www.connobj.com/cpp/cppfaq.htm ]
- [ Moderation policy: http://www.connobj.com/cpp/guide.htm ]
- [ Comments? mailto:c++-request@netlab.cs.rpi.edu ]
-